package com.majorty.auth.client;

import com.majorty.framework.client.XcServiceList;
import com.majorty.framework.domain.ucenter.ext.XcUserExt;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 调用用户中心接口
 * @author zhangshuai
 * @date 2019-07-21 13:00
 */
@FeignClient(value = XcServiceList.MJ_SERVICE_UCENTER)
public interface UserClient {
    //根据账号查询用户信息
    @GetMapping("/ucenter/getuserext")
    XcUserExt getUserext(@RequestParam("username") String username);
}
